<?php

use Drupal\shusy_vip\Entity\ShusyVip;
use Drupal\shusy_vip\Entity\ShusyVipBind;

function shusy_vip_shusy_vip_add_page() {
  $e = new ShusyVip();
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_entity_form', $e, 'add');
}

function shusy_vip_shusy_vip_view_page(ShusyVip $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_vip_shusy_vip_edit_page(ShusyVip $e) {
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_entity_form', $e, 'edit');
}

function shusy_vip_shusy_vip_delete_page(ShusyVip $e) {
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_delete_form', $e);
}

function shusy_vip_shusy_vip_bind_add_page() {
  $e = new ShusyVipBind();
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_bind_entity_form', $e, 'add');
}

function shusy_vip_shusy_vip_bind_view_page(ShusyVipBind $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_vip_shusy_vip_bind_edit_page(ShusyVipBind $e) {
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_bind_entity_form', $e, 'edit');
}

function shusy_vip_shusy_vip_bind_delete_page(ShusyVipBind $e) {
  module_load_include('inc', 'shusy_vip', 'shusy_vip.forms');
  return drupal_get_form('shusy_vip_shusy_vip_bind_delete_form', $e);
}

